package com.zyt.springboot.test20241205;

public class Test01 {
    public static void main(String[] args) {
        for( int a = 1 ; a <=9 ; a++){
            for( int b = 0 ; b <=9 ; ++b){
                for( int c = 0 ; c <=9 ; c++){
                    for( int d = 0 ; d <=9 ; d++){
                        int i = 1000*a+100*b+10*c+d;
                        int j = 1000*d+100*c+10*b+a;
                        if(4*i == j){
                            System.out.println("a:"+a);
                            System.out.println("b:"+b);
                            System.out.println("c:"+c);
                            System.out.println("d:"+d);
                            break;
                        }
                    }
                }
            }
        }
    }
}
